package com.projectxxx.persistence.dao;

import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;

import com.projectxxx.persistence.DatabaseHelper;

public abstract class BaseDAO {
	protected SQLiteDatabase database;
	protected DatabaseHelper dbHelper;

	protected BaseDAO(Context context) {
		this.dbHelper = new DatabaseHelper(context);
	}

	public void open() throws SQLException {
		this.database = this.dbHelper.getWritableDatabase();
	}

	public void close() {
		// TODO
		this.dbHelper.close();
	}

}
